<?

define ("_GLOBAL_SITE_PATH", dirname ($_SESSION["PHP_SELF"]));

set_include_path ($_SERVER["DOCUMENT_ROOT"] . ":" . get_include_path ());
set_include_path ($_SERVER["DOCUMENT_ROOT"] .
		"/" . get_include_path ());
set_include_path ($_SERVER["DOCUMENT_ROOT"] .
		"/include:" . get_include_path ());
set_include_path ($_SERVER["DOCUMENT_ROOT"] .
		"/admin:" . get_include_path ());
set_include_path ($_SERVER["DOCUMENT_ROOT"] .
		"/admin/include:" . get_include_path ());
require_once ("main.include.inc");
require_once ("{$_APP_SESSION_USER->theme}/template.calendar.inc");

global $_OBJECT_IFACE;
global $_GLOBAL_DBH;
global $_OBJECT_IFACE_DISPLAY;
global $_OBJECT_IFACE_PANEL;
global $_OBJECT_TABBING;

$_OBJECT_IFACE_PANEL = _app_create_iface_panel ();

$_OBJECT_IFACE_DISPLAY->insert_container ($_OBJECT_IFACE_PANEL);

$_OBJECT_IFACE_PANEL->insert_container (display_calendar (array (
		cal_option=>"mo_view",
		timestamp=>isset ($_REQUEST["timestamp"]) ? $_REQUEST["timestamp"] : time (),
	)));
$_OBJECT_IFACE->show_container ();

?>
